package logic.manager
{
	import logic.xmlLoader.SkinRefXML;
	import logic.xmlLoader.TextFormatXML;
	import logic.xmlLoader.TextXML;

	public class XMLManager
	{
		private static var m_xmlGroup : Array = [];
		
		private static function Instance(xmlClass : Class) : *
		{
			m_xmlGroup.push(new xmlClass);
			
			return m_xmlGroup[m_xmlGroup.length - 1];
		}
		
		public static function prase() : void
		{
			for each(var item : * in m_xmlGroup)
			{
				item.prase();
			}
		}
		
		public function XMLManager()
		{
		}
		
		public static const SkinRef : SkinRefXML = Instance(SkinRefXML);
		public static const TextFormat : TextFormatXML = Instance(TextFormatXML);
		public static const Text : TextXML = Instance(TextXML);
	}
}